//
//  QDAddCaseCell2.m
//  QuickDoctor
//
//  Created by ycw on 2016/12/25.
//  Copyright © 2016年 Eric. All rights reserved.
//

#import "QDAddCaseCell2.h"

@implementation QDAddCaseCell2

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setUpUI];
        
    }
    
    return self;
    
}

#pragma mark
#pragma mark - 设置cell
- (void) setUpUI
{
    
    UITextField *txfText = [[UITextField alloc] init];
    
    [self.contentView addSubview:txfText];
    
    [txfText mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(self.contentView).mas_offset(40);
        
        make.leading.equalTo(self.contentView).mas_offset(10);
        
        make.bottom.equalTo(self.contentView).mas_offset(-5);
        
        make.trailing.equalTo(self.contentView).mas_offset(-10);
        
        make.height.mas_equalTo(120);
        
    }];
    
    txfText.backgroundColor = [UIColor colorWithRed:170/255.0 green:170/255.0 blue:170/255.0 alpha:1];
    
    txfText.placeholder = @"请描述您的病症";
    
    txfText.contentVerticalAlignment = UIControlContentVerticalAlignmentTop;
    
    self.txfText = txfText;
    
    UILabel *label = [[UILabel alloc] init];
    
    label.text = @"病症描述:";
    
    [self.contentView addSubview:label];
    
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.leading.equalTo(self.contentView).mas_offset(10);
        
        make.trailing.equalTo(self.contentView).mas_offset(-10);
        
    }];
    
}







@end
